package com.tiancheng.onecode.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @Author: kellen
 * @Description: C端会员订单退款
 * @Date: create in 2024/12/9 11:29
 */
@TableName(value = "member_order_refund")
@Data
@EqualsAndHashCode(callSuper = true)
public class MemberOrderRefund extends BaseEntity {
    /**
     * 退款id
     */
    private String refundId;
    /**
     * 退款子单号，原样返回
     */
    private String subRefundId;
    /**
     * 主订单号
     */
    private String orderId;
    /**
     * 子订单号
     */
    private String subOrderId;
    /**
     * 退款单号
     */
    private String paymentId;
    /**
     * 退款流水号
     */
    private String flowId;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 申请退款金额
     */
    private Integer refundApplyAmount;
    /**
     * 实际退款金额
     * @see com.tiancheng.onecode.enums.RefundStatusEnum
     */
    private Integer refundAmount;
    /**
     * 退优惠金额
     */
    private Integer discount;
    /**
     * 退款状态
     * @see com.tiancheng.onecode.enums.RefundStatusEnum
     */
    private String refundStatus;
    /**
     * 退款时间
     */
    private LocalDateTime refundTime;
    /**
     * 退款原因
     */
    private String refundReason;
}
